package com.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.reggie.pojo.Category;
import com.reggie.pojo.Dish;

import java.util.List;

public interface CategoryService {

    Boolean save(Category category);

    Page<Category> selectByPage(Integer page,Integer pageSize,Integer sort);

    int DeleteById(Long ids);

    int UpdateCategory(Category category);

    List<Category> SelectByType(Integer type);
    //通过id获取到菜品的种类名称
    String selectCategoryNameById(Long id);

    List<Category> selectAll();
}
